Skip to content

Conversation

miroiu
Copy link
Owner

@miroiu miroiu commented Jan 23, 2024

Allow user defined functions #11

Sample:

_context.RegisterFunction("if", (args) => args[0] > 0 ? args[1] : args[2]);
Assert.IsTrue("if(5 > 2, {true}, {false})".EvalBoolean(_context));

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant